@isTest
private class ProductPriceControllerTest {
    static testMethod void testMethod1() {
        Product__c prd = new Product__c();
        prd.Name = 'test product';
        insert prd;

        // Price__c pr = new Price__c();
        // pr.Product__c = prd.Id;
        // //pr.Name = '';
        // insert pr;

        PageReference page = new PageReference('/apex/CreateProductPrice?pid=' + prd.Id);
        System.Test.setCurrentPage(page);
        ProductPriceController pp = new ProductPriceController(new ApexPages.StandardController(prd));

        pp.init();
        System.assertEquals(ProductPriceController.getPicklistValues('Price__c','Company__c').keySet().size(), pp.pbList.size());

        pp.pbList[0].chk = true;
        pp.save();

        List<Price__c> plist = [select Id from Price__c where Product__c = :prd.Id];
        System.assertEquals(1, plist.size());
    }
}